from flask import Flask, request

app = Flask(__name__)

@app.route('/')
def hello_world():
    return "Hello World!"

@app.route('/add', methods=['POST'])
def add():
    result = {'sum': request.json['a'] + request.json['b'] }
    return jsonify(result)

if __name__ == '__main__':
    app.run(port=5000, debug=True)